package com.zhuiYun.project.api.homepagefunction.groupfreeshipping.service.impl;
import com.zhuiYun.project.api.commoditydetail.entity.Commodity;
import com.zhuiYun.project.api.commoditydetail.mapper.CommodityMapper;
import com.zhuiYun.project.api.homepagefunction.groupfreeshipping.service.GroupFreeShippingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.List;
/**
 * @ClassName GroupFreeShippingServiceImpl
 * @Description 拼团包邮服务层
 * @Author lzk
 * @Date 2023/4/4 16:39
 **/
@Service
public class GroupFreeShippingServiceImpl implements GroupFreeShippingService {
    @Autowired
    CommodityMapper commodityMapper;
    /**
     *
     * @Author lzk
     * @Description 拼团包邮查询商品信息
     * @date 2023/4/4 16:53
     * Return java.util.List<com.zhuiYun.project.api.commodity.entity.Commodity>
     */
    @Override
    public List<Commodity> queryTheInformationOfGroupedProducts() {
        Example example = new Example(Commodity.class);
        example.createCriteria().andEqualTo("delFlag",0);
        List<Commodity> list = commodityMapper.selectByExample(example);
        return list;
    }
}
